Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "save-my-kpidata-values">

It allows to save the personal data inserted in My Personal KPI Data.

Inputs

A JSON with these parameters:
id number
the id of the kpi data (you MUST have the ownership of the kpi data)
value depends on kpi
value to save in selected kpi data
latitude float
(optional) if you want to add gps metadata to the value
longitude float
(optional) if you want to add gps metadata to the value
datatime date
(optional) if you want to insert the data of the value in the format yyyy-MM-ddTHH:mmX (where X is the timezone) or timestamp

An example of the JSON array filled with correct data:

{
    "id": 17849,
    "datatime": "2020-04-14T16:30Z",
    "latitude": 43.11,
    "longitude": 11.34,
    "value": 5
}
    

Outputs

Returns an array containing the data that have been saved in the search period

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.